package com.example.concurrency.thread02_strategy;

/**
 * @description: 具体策略类
 * @program: demos
 * @author: dove
 * @date: 2020-12-03 23:12
 **/

public class TrainStrategy implements TravelStrategy{

    /**
     * 对策略模式定义的方法的具体实现
     */
    @Override
    public void travelAlgorithm() {
        System.out.println("乘火车出行");
    }
}
